projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf2125
)
(send-mail-function): Autoload the standard-value.
author
Luc Teirlinck
<teirllm@auburn.edu>
Wed, 28 Dec 2005 16:38:27 +0000
(16:38 +0000)
committer
Luc Teirlinck
<teirllm@auburn.edu>
Wed, 28 Dec 2005 16:38:27 +0000
(16:38 +0000)
lisp/mail/sendmail.el
patch
|
blob
|
history
diff --git
a/lisp/mail/sendmail.el
b/lisp/mail/sendmail.el
index 40e678aa1303feb1d2014ec025c19aff7a7cc5c7..cf257a8876e8363f92696d84e83a0e29ef1532fc 100644
(file)
--- a/
lisp/mail/sendmail.el
+++ b/
lisp/mail/sendmail.el
@@
-123,6
+123,15
@@
nil means let mailer mail back a message to report errors."
:type 'regexp
:group 'sendmail)
+;; Revent problems with `window-system' not having the correct value
+;; when loaddefs.el is loaded. `custom-reevaluate-setting' needs the
+;; standard value.
+;;;###autoload
+(put 'send-mail-function 'standard-value
+ '((if (and window-system (memq system-type '(darwin windows-nt)))
+ 'mailclient-send-it
+ 'sendmail-send-it)))
+
;; Useful to set in site-init.el
;;;###autoload
(defcustom send-mail-function